#pragma once
#include "sensor.hpp"
#include <ooputils/OOPString.h>


class KinectSensor : public Sensor
{
public:

	KinectSensor (const OOPUtils::OOPString& configPath);

	virtual ~KinectSensor ();

	virtual std::vector< glm::dvec3 > detectFingerPoints();

private:

	std::vector< glm::dvec3 > process ();
	void findPianoArea ();
	void cleanFindPianoAreaResources ();
	void processBackground ();
	void preProcess ();
	glm::dvec3 to3D (glm::dvec3 v);
};

